package com.example.utils;

public class ResultUtil {

    public static ResponseMessage success(Object object,int length){
        ResponseMessage msg=new ResponseMessage();
        msg.setCode(200);
        msg.setMsg("请求成功");
        msg.setResult(object);
        msg.setMsglong(length);
       // LOGGER.info("请求数据成功,数据值为:"+object);
        return msg;
    }
    public static ResponseMessage success(){
        //LOGGER.info("请求数据成功");
        return success(null,0);
    }

    public static ResponseMessage error(Integer code,String resultmsg){
        ResponseMessage msg=new ResponseMessage();
        msg.setCode(code);
        msg.setMsg(resultmsg);
        return msg;
    }
}
